package com.oak.broke.model.vip.dao;

import com.oak.broke.model.vip.entity.VipOpenRecordEntity;
import com.oak.broke.model.vip.vo.api.VipOpenRecordVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tanghan
 * @email broke@gmail.com
 * @date 2023-04-12 17:02:57
 */
@Mapper
public interface VipOpenRecordDao extends BaseMapper<VipOpenRecordEntity> {

    /**
     * 查询会员开通记录
     *
     * @param userRelationCode 用户code
     * @param vipUserType      用户类型
     * @return
     */
    List<VipOpenRecordVO> listVipOpenRecord(@Param("userRelationCode") String userRelationCode,
                                            @Param("vipUserType") String vipUserType);
}
